//
//  LuYouTestVC.m
//  OCStudy
//
//  Created by tomato on 2022/8/13.
//

#import "LuYouTestVC.h"
#import "MGJRouterManager.h"

@interface LuYouTestVC ()

@end

@implementation LuYouTestVC

- (void)viewDidLoad {
    [super viewDidLoad];
   
    NSLog(@"传过来的参数=%@",self.userPhone);
    
    UIButton *btn = [[UIButton alloc]init];
    btn.frame =CGRectMake(50,50,200,50);
    [btn setTitle:@"跳到页面"forState:UIControlStateNormal];
    [btn setTitleColor:[UIColor blueColor]forState:UIControlStateNormal];
    [self.view addSubview:btn];
    [btn addTarget:self action:@selector(back)forControlEvents:UIControlEventTouchUpInside];
    
}

-(void)back{
    
    // 反向传值
    [MGJRouter openURL:@"tmd://test/fanXiangChuanZhi"
          withUserInfo:@{@"navigationVC" :self.navigationController,
                         @"userName":@"刘德华"
                        }
            completion:nil];
}

@end
